package com.aptemo.webetek.client.events;

import java.util.ArrayList;

import com.aptemo.webetek.shared.EventBean;
import com.google.gwt.event.shared.GwtEvent;

public class UpdateBetListEvent
		extends GwtEvent<GameListUpdatedHandler>
{

	public static final Type<GameListUpdatedHandler>	TYPE	= new GwtEvent.Type<GameListUpdatedHandler>();
	private String									musername;
	private String									msport;
	private ArrayList<EventBean>						mlist;

	public UpdateBetListEvent(String username, String sport, ArrayList<EventBean> list)
	{
		super();
		this.setUsername(username);
		this.setSport(sport);
		this.setList(list);
	}

	@Override
	protected void dispatch(GameListUpdatedHandler handler)
	{
		//handler.onBetListUpdate(this);
	}

	@Override
	public Type<GameListUpdatedHandler> getAssociatedType()
	{
		return TYPE;
	}

	public void setSport(String msport)
	{
		this.msport = msport;
	}

	public String getSport()
	{
		return msport;
	}

	public void setUsername(String musername)
	{
		this.musername = musername;
	}

	public String getUsername()
	{
		return musername;
	}

	public void setList(ArrayList<EventBean> mlist)
	{
		this.mlist = mlist;
	}

	public ArrayList<EventBean> getList()
	{
		return mlist;
	}

}
